import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Table from './views/nav1/Table.vue'
import Form from './views/nav1/Form.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
import user from "./views/org/user";
import UserPic from "./views/org/UserPic";
import Writer from "./views/nav2/Writer";
import novel from "./views/nav2/novel";
let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: '组织机构管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
           /* { path: '/main', component: Main, name: '主页', hidden: true },*/
            { path: '/user', component: user, name: '用户信息' },
            { path: '/form', component: Form, name: '部门信息' },
            { path: '/userPic', component: UserPic, name: '用户照片' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '运营管理',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/writer', component: Writer, name: '作家表' },
            { path: '/novel', component: novel, name: '小说表' },
            { path: '/page6', component: Page6, name: '电影表' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '日志管理',
        iconCls: 'fa fa-address-card',
        //leaf: true,//只有一个节点
        children: [
            { path: '/page6', component: Page6, name: '日志表' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;